package com.bojiu.lawsearch.lawsearch.service;

import com.bojiu.lawsearch.lawsearch.model.Admin;
import com.bojiu.lawsearch.lawsearch.model.GoodsSetting;
import com.bojiu.lawsearch.lawsearch.model.Page;
import com.bojiu.lawsearch.lawsearch.model.Setting;
import com.bojiu.lawsearch.lawsearch.util.JsonResult;

import java.util.List;

/**
 * @author: afdiao
 * @Date：2020/3/7 13:30
 * @Description:
 */
public interface AdminService {
    JsonResult login(String name, String password);

    Page<Setting> getSettingList(int pageNum, int pageSize);

    Page<GoodsSetting> getGoodsSettingList(int pageNum, int pageSize);

    void updateValue(int id, String value);

    void updateGoodsPrice(int id, int price);

    void createUser(Admin admin);

    void deleteUser(int userId);

    List<Admin> getUserList();

    void updatePassword(int userId, String password);
}
